﻿@model cloudscribe.Core.Web.ViewModels.SiteUser.GenerateRecoveryCodesViewModel
@inject IStringLocalizer<CloudscribeCore> sr
@{ 
    ViewData["BodyClass"] = "manage-section manage-recovery2fa";
}
<h4>@ViewData["Title"]</h4>
<div class="alert alert-warning" role="alert">
    <p>
        <span class="glyphicon glyphicon-warning-sign"></span>
        <strong>@sr["Put these codes in a safe place."]</strong>
    </p>
    <p>
        @sr["If you lose your device and don't have the recovery codes you will lose access to your account."]
    </p>
</div>
<div class="row">
    <div class="col-md-12">
        @for (var row = 0; row < Model.RecoveryCodes.Count(); row += 2)
        {
            <code>@Model.RecoveryCodes[row]</code><text>&nbsp;</text><code>@Model.RecoveryCodes[row + 1]</code><br />
        }
    </div>
</div>